﻿<UserControl x:Class="SoftSource.Timecard.Views.SummaryView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d"
             d:DesignWidth="573"
             d:DesignHeight="513">

    <Grid x:Name="LayoutRoot">
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid Grid.Column="0"
              Margin="4">
            <Grid Grid.Row="0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <TextBlock HorizontalAlignment="Left"
                           VerticalAlignment="Top"
                           Text="Time Entry Summary:" />
                <ContentControl x:Name="UtilizationContent"
                                Grid.Row="1"
                                HorizontalContentAlignment="Stretch"
                                VerticalContentAlignment="Stretch" />
            </Grid>
        </Grid>
        <Grid Grid.Column="1"
              Grid.Row="1"
              Margin="4">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Grid Grid.Row="0"
                  Margin="4">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <ContentControl x:Name="EntriesPriorToProjectBillingDateContent"
                                HorizontalContentAlignment="Stretch"
                                VerticalContentAlignment="Stretch"
                                Grid.Row="1" />
                <TextBlock HorizontalAlignment="Left"
                           VerticalAlignment="Top"
                           Text="Entries Prior To Project Billing Date:" />
            </Grid>
            <Grid Grid.Row="1"
                  Visibility="{Binding CreateEntriesFlaggedForAdminView, Converter={StaticResource ObjectToVisibilityConverter}}"
                  Margin="4">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <ContentControl x:Name="EntriesFlaggedForAdminContent"
                                HorizontalContentAlignment="Stretch"
                                VerticalContentAlignment="Stretch"
                                Grid.Row="1" />
                <TextBlock HorizontalAlignment="Left"
                           VerticalAlignment="Top"
                           Text="Entries Flagged for Admin Review:" />
            </Grid>
        </Grid>
    </Grid>
</UserControl>
